84% rotem-navigator

Code Review | Rotem Navigator

WordPress plugin Rotem Navigator scored84%from 54 tests.

About plugin

  • Plugin page: rotem-navigator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: Apr 14, 2023
  • Number of updates: 7
  • Update frequency: every 96.6 days
  • Top authors: yortem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼12.50ms] Passed 4 tests

Server-side resources used by Rotem Navigator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.15 ▲1.46
Dashboard /wp-admin3.37 ▲0.0251.29 ▼16.02
Posts /wp-admin/edit.php3.48 ▲0.1352.79 ▼7.54
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.12 ▼26.97
Media Library /wp-admin/upload.php3.29 ▲0.0639.79 ▲0.54
Rotem Navigator Settings /wp-admin/options-general.php?page=rotem-navigator-settings3.2635.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rotem Navigator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.43 ▼1.1010.03 ▲8.2244.81 ▼0.65
Dashboard /wp-admin2,203 ▲265.56 ▼0.1089.94 ▼9.6940.00 ▼2.89
Posts /wp-admin/edit.php2,108 ▲52.02 ▲0.0037.41 ▼3.1636.42 ▼3.10
Add New Post /wp-admin/post-new.php1,533 ▲523.52 ▲0.57690.52 ▲33.2366.67 ▲0.58
Media Library /wp-admin/upload.php1,408 ▲84.15 ▼0.0496.70 ▼9.3143.08 ▼4.54
Rotem Navigator Settings /wp-admin/options-general.php?page=rotem-navigator-settings7952.0124.5328.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rotem-navigator/public/partials/rotem-navigator-public-display.php
    • > /wp-content/plugins/rotem-navigator/admin/partials/rotem-navigator-admin-display.php

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

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === rotem-navigator === )
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in rotem-navigator/assets to your readme.txt
You can look at the official readme.txt

rotem-navigator/rotem-navigator.php Passed 13 tests

The entry point to "Rotem Navigator" version 1.0.0 is a PHP file that has certain tags in its header comment area
99 characters long description:
The plugin add a navigator to posts so there are anchors to each H2 title from the top of the post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin323 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12150547255
JavaScript2135455
CSS23813

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.62
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin