84% wp-pagenavi-style

Code Review | WP PageNavi Style

WordPress plugin WP PageNavi Style scored84%from 54 tests.

About plugin

  • Plugin page: wp-pagenavi-style
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2011
  • Latest release: Jun 27, 2014
  • Number of updates: 16
  • Update frequency: every 68.6 days
  • Top authors: snilesh (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

10,000+ active /208,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.08ms] Passed 4 tests

Server-side resources used by WP PageNavi Style
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.18 ▲0.45
Dashboard /wp-admin3.33 ▼0.0150.26 ▼14.82
Posts /wp-admin/edit.php3.38 ▲0.0352.53 ▲7.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.72 ▲1.68
Media Library /wp-admin/upload.php3.25 ▲0.0338.66 ▲0.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options
WP_PAGENAVI_STYLE_OPTION
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP PageNavi Style
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.25 ▼0.112.11 ▲0.1645.10 ▲2.73
Dashboard /wp-admin2,198 ▲275.56 ▼0.1193.61 ▼0.1878.74 ▲38.35
Posts /wp-admin/edit.php2,115 ▲152.01 ▲0.0235.10 ▼4.6235.62 ▼1.24
Add New Post /wp-admin/post-new.php1,558 ▲3223.02 ▼0.25697.38 ▲40.4656.84 ▲7.55
Media Library /wp-admin/upload.php1,415 ▲154.18 ▲0.01100.76 ▼0.7771.38 ▲25.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-pagenavi-style/includes/our_feeds.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-pagenavi-style/wp-pagenavi-style.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-pagenavi-style/includes/options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: pagenavi styling, pagination, pagenavi css, pagenavi style, navigation...

wp-pagenavi-style/wp-pagenavi-style.php 92% from 13 tests

The entry point to "WP PageNavi Style" version 1.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,312 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS362501,405
JavaScript3423522
PHP53637385

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
60 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/css3_light_blue_glossy.png3.38KB2.78KB▼ 17.56%
style/images/green.png2.23KB1.20KB▼ 46.25%
style/images/css3_yellow_glossy.png3.33KB2.77KB▼ 16.67%
style/images/red_black.png4.49KB2.91KB▼ 35.32%
images/error.png1.07KB0.97KB▼ 9.91%