83% simdex-toggle-wp-admin-notifications

Code Review | SimDex Toggle WP Admin Notifications

WordPress plugin SimDex Toggle WP Admin Notifications scored 83% from 54 tests.

About plugin

  • Plugin page: simdex-toggle-wp-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Jan 8, 2018
  • Number of updates: 6
  • Update frequency: every 61.2 days
  • Top authors: geoffmyers (83.33%)deployer (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,075 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.00MB] [CPU: ▼3.07ms] Passed 4 tests

Server-side resources used by SimDex Toggle WP Admin Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.06 ▼0.62
Dashboard /wp-admin3.31 ▲0.0146.79 ▼3.76
Posts /wp-admin/edit.php3.36 ▲0.0046.57 ▲4.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.08 ▼3.54
Media Library /wp-admin/upload.php3.23 ▲0.0031.44 ▼4.36

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

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

Browser metrics Passed 4 tests

SimDex Toggle WP Admin Notifications: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.52 ▼0.831.84 ▲0.0744.53 ▼10.40
Dashboard /wp-admin2,211 ▲236.04 ▲0.1598.60 ▼16.4741.02 ▼5.79
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0036.56 ▲2.2532.17 ▼2.79
Add New Post /wp-admin/post-new.php1,588 ▲6021.86 ▲3.72654.19 ▼1.4237.52 ▼18.36
Media Library /wp-admin/upload.php1,393 ▲54.23 ▲0.0595.55 ▼9.6042.57 ▼3.31

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simdex-toggle-wp-admin-notifications/simdex-toggle-wp-admin-notifications.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

simdex-toggle-wp-admin-notifications/simdex-toggle-wp-admin-notifications.php 85% from 13 tests

"SimDex Toggle WP Admin Notifications" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/lang")
  • Description: Keep the plugin description shorter than 140 characters (currently 247 characters long)

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
No dangerous file extensions were detected67 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP161929
JavaScript111019
CSS121016
Markdown1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin