83% parknav-wp

Code Review | Parknav WP

WordPress plugin Parknav WP scored83%from 54 tests.

About plugin

  • Plugin page: parknav-wp
  • Plugin version: 1.0.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2020
  • Latest release: Feb 19, 2020
  • Number of updates: 20
  • Update frequency: every 0.4 days
  • Top authors: eyalamir (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲6.72ms] Passed 4 tests

Analyzing server-side resources used by Parknav WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0351.10 ▲6.97
Dashboard /wp-admin3.33 ▲0.0353.79 ▲0.55
Posts /wp-admin/edit.php3.38 ▲0.03108.73 ▲57.15
Add New Post /wp-admin/post-new.php5.91 ▲0.03117.33 ▲13.78
Media Library /wp-admin/upload.php3.25 ▲0.0340.98 ▲5.59

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Parknav WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▼0.242.14 ▲0.1544.28 ▲0.40
Dashboard /wp-admin2,192 ▲125.62 ▼0.06105.31 ▲3.7952.72 ▲9.05
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0159.48 ▲22.2278.56 ▲44.35
Add New Post /wp-admin/post-new.php1,404 ▼12418.12 ▼4.94674.12 ▼21.9455.10 ▲5.16
Media Library /wp-admin/upload.php1,397 ▲34.13 ▼0.05126.26 ▲22.6753.29 ▲7.90

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/parknav-wp/trunk/widgets/parknavwp-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/parknav-wp/widgets/parknavwp-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Screenshots: A description for screenshot #3 is required in parknav-wp/assets to your readme.txt
You can look at the official readme.txt

parknav-wp/parknavforwp.php 85% from 13 tests

"Parknav WP" version 1.0.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("parknav-wp.php" instead of "parknavforwp.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected345 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3194381345

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes250.00%
Methods30
▷ Static methods26.67%
▷ Public methods2686.67%
▷ Protected methods413.33%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin