90% important-links

Code Review | Important Links

WordPress plugin Important Links scored90%from 54 tests.

About plugin

  • Plugin page: important-links
  • Plugin version: 1.1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Oct 13, 2018
  • Number of updates: 6
  • Update frequency: every 3.5 days
  • Top authors: alexdemchak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /550 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.90ms] Passed 4 tests

An overview of server-side resources used by Important Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.91 ▲3.72
Dashboard /wp-admin3.32 ▲0.0147.33 ▲2.20
Posts /wp-admin/edit.php3.37 ▲0.0143.70 ▼1.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.42 ▼16.10
Media Library /wp-admin/upload.php3.24 ▲0.0135.65 ▼0.00

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Important Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.42 ▼0.131.70 ▲0.0545.66 ▲5.67
Dashboard /wp-admin2,214 ▲335.58 ▼0.1487.23 ▼13.9337.85 ▼5.03
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.1734.16 ▼2.1633.99 ▼3.92
Add New Post /wp-admin/post-new.php1,539 ▲1123.01 ▼0.22680.01 ▲10.8253.59 ▼7.21
Media Library /wp-admin/upload.php1,413 ▲164.15 ▼0.0697.52 ▼19.9842.54 ▼5.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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)
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: links, account management, link management

important-links/important-links.php Passed 13 tests

The principal PHP file in "Important Links" v. 1.1.0.1 is loaded by WordPress automatically on each request
67 characters long description:
Easily keep track of important URLs inside your WordPress Dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,453 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP330894966
CSS241363
JavaScript23219124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin