83% woocod-load-more-post

Code Review | Woocod load more post

WordPress plugin Woocod load more post scored83%from 54 tests.

About plugin

  • Plugin page: woocod-load-more-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 19, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 20
  • Update frequency: every 0.5 days
  • Top authors: SanjayaBhai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.50ms] Passed 4 tests

Analyzing server-side resources used by Woocod load more post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.88 ▼3.88
Dashboard /wp-admin3.35 ▲0.0551.26 ▼0.82
Posts /wp-admin/edit.php3.47 ▲0.1148.69 ▼3.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.14 ▼9.92
Media Library /wp-admin/upload.php3.28 ▲0.0537.21 ▼4.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woocod load more post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.32 ▼1.059.45 ▲7.5542.68 ▼3.40
Dashboard /wp-admin2,198 ▲245.57 ▼0.0088.40 ▼15.1941.76 ▼1.63
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0137.96 ▲1.9338.72 ▲0.69
Add New Post /wp-admin/post-new.php1,526 ▼15322.98 ▲0.87679.98 ▼38.6552.70 ▼12.74
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.02108.33 ▼1.3547.53 ▲2.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image_src() in wp-content/plugins/woocod-load-more-post/templates/post-repeater.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: loadmore, category filter with load more, post loadmore, wordpress loadmore, ajax loadmore

woocod-load-more-post/woocod-load-more-post.php 85% from 13 tests

The primary PHP file in "Woocod load more post" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin403 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP685219331
CSS119372

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1473.68%
▷ Protected methods00.00%
▷ Private methods526.32%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.54MB with 0.42MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screen1.png557.83KB132.78KB▼ 76.20%