89% reshark-pdb

Code Review | Reshark PDB

WordPress plugin Reshark PDB scored89%from 54 tests.

About plugin

  • Plugin page: reshark-pdb
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2023
  • Latest release: Jun 29, 2023
  • Number of updates: 9
  • Update frequency: every 1.3 days
  • Top authors: metaxysrl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /135 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.34MB] [CPU: ▼9.12ms] Passed 4 tests

Server-side resources used by Reshark PDB
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3222.36 ▼17.97
Dashboard /wp-admin3.65 ▲0.3445.82 ▼1.51
Posts /wp-admin/edit.php3.76 ▲0.4050.98 ▲3.16
Add New Post /wp-admin/post-new.php6.25 ▲0.3685.75 ▼20.14
Media Library /wp-admin/upload.php3.57 ▲0.3436.85 ▲4.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Reshark PDB
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,483 ▼26313.20 ▼1.550.59 ▼1.3215.68 ▼27.23
Dashboard /wp-admin2,227 ▲424.89 ▼0.95107.80 ▼3.2940.03 ▼5.05
Posts /wp-admin/edit.php2,106 ▲202.04 ▲0.0040.88 ▲4.9835.50 ▲0.09
Add New Post /wp-admin/post-new.php1,530 ▼723.28 ▲0.03646.20 ▼35.6364.66 ▲7.23
Media Library /wp-admin/upload.php1,400 ▲124.35 ▼0.09100.16 ▼13.2144.76 ▼5.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

reshark-pdb/reshark_pdb.php 85% from 13 tests

The entry point to "Reshark PDB" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reshark-pdb.php" instead of "reshark_pdb.php")
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

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 detected2,402 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP11277891,667
CSS4643395
JavaScript53316340

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions65
▷ Named functions65100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/marker_blue.png6.97KB3.25KB▼ 53.43%
assets/images/logo_pt.png3.35KB2.31KB▼ 31.07%
assets/images/ico_reshark.png30.84KB13.23KB▼ 57.11%
assets/images/marker_yellow.png3.50KB1.27KB▼ 63.83%