79% paginated-effects-gallery

Code Review | Paginated Effects Gallery

WordPress plugin Paginated Effects Gallery scored79%from 54 tests.

About plugin

  • Plugin page: paginated-effects...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Jun 15, 2013
  • Number of updates: 18
  • Update frequency: every 4.2 days
  • Top authors: Nadeem Kelly (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /6,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼5.62MB] [CPU: ▼1,129,936.25ms] Passed 4 tests

This is a short check of server-side resources used by Paginated Effects Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /25.95 ▲22.444,527,628.96 ▲4,527,579.96
Dashboard /wp-admin3.38 ▼22.5649.66 ▼4,519,709.41
Posts /wp-admin/edit.php3.43 ▲0.0346.02 ▼14.79
Add New Post /wp-admin/post-new.php5.96 ▲0.0386.84 ▼18.38
Media Library /wp-admin/upload.php3.30 ▲0.0336.77 ▼2.43
Paginated Effects /wp-admin/options-general.php?page=peg3.2532.41

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Paginated Effects Gallery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.24 ▼0.161.63 ▲0.0139.33 ▼5.44
Dashboard /wp-admin2,202 ▲255.68 ▲0.0189.69 ▼3.5541.36 ▼3.43
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0736.44 ▼5.1136.11 ▼1.07
Add New Post /wp-admin/post-new.php1,529 ▲123.59 ▲0.64663.52 ▼59.7253.58 ▼0.40
Media Library /wp-admin/upload.php1,407 ▲134.19 ▼0.0399.97 ▼5.5144.52 ▼6.70
Paginated Effects /wp-admin/options-general.php?page=peg1,0252.0324.6228.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=peg
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=peg
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=peg
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=peg
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paginated-effects-gallery/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paginated-effects-gallery/options.php:2

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pagination, jquery, gallery

paginated-effects-gallery/paginated-effects-gallery.php Passed 13 tests

The primary PHP file in "Paginated Effects Gallery" version 0.4 is used by WordPress to initiate all plugin functionality
126 characters long description:
A simple, light and easy-to-use plugin that adds jQuery pagination to the standard wordpress gallery with cool jquery effects.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin10,796 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript391,6923,5979,323
JSON16001,042
PHP22034192
CSS25918181
Markdown141058

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin