90% floating-nextprev

Code Review | Floating NextPrev

WordPress plugin Floating NextPrev scored90%from 54 tests.

About plugin

  • Plugin page: floating-nextprev
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Dec 8, 2011
  • Latest release: Aug 11, 2020
  • Number of updates: 20
  • Update frequency: every 158.5 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /12,048 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.05ms] Passed 4 tests

This is a short check of server-side resources used by Floating NextPrev
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.21 ▼1.65
Dashboard /wp-admin3.37 ▲0.0247.38 ▼12.55
Posts /wp-admin/edit.php3.48 ▲0.1242.94 ▼7.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.18 ▼26.72
Media Library /wp-admin/upload.php3.29 ▲0.0635.85 ▲2.66
Floating NextPrev /wp-admin/options-general.php?page=floating-nextprev3.2629.29

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

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

Browser metrics Passed 4 tests

Floating NextPrev: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.491.81 ▲0.0944.33 ▲2.33
Dashboard /wp-admin2,207 ▲195.95 ▲1.0498.61 ▼9.5238.46 ▼3.91
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0135.85 ▼5.6032.89 ▼2.53
Add New Post /wp-admin/post-new.php1,529 ▲1523.31 ▲5.81639.62 ▲20.1366.16 ▲11.34
Media Library /wp-admin/upload.php1,392 ▲14.21 ▲0.0599.43 ▲0.8846.41 ▼0.80
Floating NextPrev /wp-admin/options-general.php?page=floating-nextprev8542.0727.0533.36

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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: navigation, jquery, floating

floating-nextprev/floating-nextprev.php Passed 13 tests

"Floating NextPrev" version 2.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Displays icons for navigation between your posts so practical and fast.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin605 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP776203312
Sass1480234
JavaScript28358
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.50
▷ Minimum class complexity9.00
▷ Maximum class complexity22.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods318.75%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
11 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/admin/likefbred.png3.15KB3.13KB▼ 0.56%
assets/images/admin/likefbgray.png3.16KB3.15KB0.31%
assets/images/admin/likefbgreen.png3.16KB3.14KB▼ 0.59%
assets/images/frontend/arrow-left.png0.43KB0.43KB0.00%
assets/images/admin/btnblue.png3.17KB3.16KB▼ 0.52%