89% edoc-post-navigation-sliders

Code Review | eDoc Post Navigation Sliders

WordPress plugin eDoc Post Navigation Sliders scored 89% from 54 tests.

About plugin

  • Plugin page: edoc-post-navigat...
  • Plugin version: 1.21
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2016
  • Latest release: May 9, 2019
  • Number of updates: 8
  • Update frequency: every 111.9 days
  • Top authors: jerodmoore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by eDoc Post Navigation Sliders
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.59 ▲2.52
Dashboard /wp-admin3.35 ▲0.0444.56 ▼5.62
Posts /wp-admin/edit.php3.40 ▲0.0445.20 ▲1.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.89 ▲5.61
Media Library /wp-admin/upload.php3.27 ▲0.0434.89 ▲1.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for eDoc Post Navigation Sliders
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.31 ▼1.071.65 ▲0.0343.10 ▲0.79
Dashboard /wp-admin2,224 ▲394.90 ▲0.0096.08 ▼6.6173.11 ▲27.57
Posts /wp-admin/edit.php2,107 ▲181.99 ▲0.0337.94 ▲2.8233.49 ▼0.73
Add New Post /wp-admin/post-new.php1,536 ▲2223.30 ▲5.72765.21 ▲90.4753.35 ▼14.38
Media Library /wp-admin/upload.php1,403 ▲184.27 ▲0.05100.08 ▲4.1843.76 ▲1.53

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Looking good! No server-side errors or output 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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Admin Panel), #2 (Frontend Display)
The official readme.txt is a good inspiration

edoc-post-navigation-sliders/edoc-post-navigation.php 85% from 13 tests

The entry point to "eDoc Post Navigation Sliders" version 1.21 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("edoc-post-navigation-sliders.php" instead of "edoc-post-navigation.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)

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
There were no executable files found in this plugin3,868 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS449593,625
PHP12521189
JavaScript3101154

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png5.16KB1.64KB▼ 68.14%
images/logoNewSquare.png0.75KB0.68KB▼ 9.03%
images/icon-48-dashboard.png4.04KB2.30KB▼ 43.15%
images/flag.png3.75KB1.26KB▼ 66.32%
images/move.png1.00KB0.16KB▼ 83.80%