84% inline-navi

Code Review | Inline Navi

WordPress plugin Inline Navi scored 84% from 54 tests.

About plugin

  • Plugin page: inline-navi
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Jul 4, 2013
  • Latest release: Oct 12, 2013
  • Number of updates: 22
  • Update frequency: every 4.6 days
  • Top authors: conchanental (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.36MB] [CPU: ▼9.20ms] Passed 4 tests

Analyzing server-side resources used by Inline Navi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.29 ▼36.29
Dashboard /wp-admin3.31 ▲0.0145.88 ▼2.35
Posts /wp-admin/edit.php3.36 ▲0.0048.26 ▼0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.34 ▲2.55
Media Library /wp-admin/upload.php3.23 ▲0.0036.98 ▲3.99

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Inline Navi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲15813.74 ▼0.895.32 ▲3.6744.50 ▲2.24
Dashboard /wp-admin2,206 ▲185.89 ▲0.9898.79 ▲1.2739.88 ▼8.45
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0139.15 ▼1.0639.25 ▲1.14
Add New Post /wp-admin/post-new.php1,534 ▼1623.12 ▲4.82627.37 ▼19.4054.14 ▲2.58
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.1092.08 ▼9.1842.18 ▼2.05

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/inline-navi/inline-navi.php:30

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Output Sample) image not found
The official readme.txt is a good inspiration

inline-navi/inline-navi.php Passed 13 tests

"Inline Navi" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
This plug-in displays the contents of the child page on a parent page with a tab.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected185 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1223182
CSS11073
JavaScript10130

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions3
▷ Named functions3100.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/inline_navi_bottom_bg.png0.56KB1.65KB0.00%
images/inline_navi_top_bg.png0.47KB1.68KB0.00%
screenshot-1.png9.73KB6.27KB▼ 35.56%