10% infinite-transporter

Code Review | Infinite Post Transporter

WordPress plugin Infinite Post Transporter scored 10% from 54 tests.

About plugin

  • Plugin page: infinite-transporter
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Dec 20, 2014
  • Number of updates: 12
  • Update frequency: every 5.9 days
  • Top authors: TomHarrigan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

80+ active / 4,453 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/infinite-transporter/transporter.php+170
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.93ms] Passed 4 tests

Server-side resources used by Infinite Post Transporter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.77 ▼5.61
Dashboard /wp-admin3.31 ▲0.0155.70 ▲8.24
Posts /wp-admin/edit.php3.36 ▲0.0047.13 ▲0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.41 ▲1.53
Media Library /wp-admin/upload.php3.23 ▲0.0033.13 ▼0.08

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Infinite Post Transporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼0.701.70 ▼0.1741.27 ▲1.92
Dashboard /wp-admin2,206 ▲214.85 ▼1.05106.06 ▼0.7740.79 ▲1.62
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0540.71 ▼0.3936.26 ▲0.65
Add New Post /wp-admin/post-new.php1,544 ▲3018.06 ▲0.49596.57 ▼99.9251.78 ▲0.26
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.0394.77 ▼7.0940.23 ▼6.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/twentyfifteen.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/twentythirteen.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/canvas.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/genesis.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/twentyeleven.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/twentytwelve.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/twentyfourteen.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/transporter.php:1243
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-transporter/themes/twentyten.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: endless, scroll, canvas, reading, ajax...

infinite-transporter/transporter.php 85% from 13 tests

The principal PHP file in "Infinite Post Transporter" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("infinite-transporter.php" instead of "transporter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,014 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP9279468870
CSS911261705
JavaScript1120125439

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity176.00
▷ Minimum class complexity176.00
▷ Maximum class complexity176.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods514.71%
▷ Public methods3191.18%
▷ Protected methods00.00%
▷ Private methods38.82%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin