84% wp-is-connected-by-azed

Code Review | WP Is Connected by Azed

WordPress plugin WP Is Connected by Azed scored 84% from 54 tests.

About plugin

  • Plugin page: wp-is-connected-b...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: azeddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 475 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.16ms] Passed 4 tests

Server-side resources used by WP Is Connected by Azed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.56 ▲4.06
Dashboard /wp-admin3.35 ▲0.0549.23 ▼2.34
Posts /wp-admin/edit.php3.40 ▲0.0554.04 ▲1.38
Add New Post /wp-admin/post-new.php5.95 ▲0.0798.39 ▼23.74
Media Library /wp-admin/upload.php3.27 ▲0.0541.24 ▲6.09
Is connected Examples /wp-admin/plugins.php?page=AzedWPIsConnected3.3433.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Is Connected by Azed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲413.24 ▼1.011.63 ▼0.2146.69 ▲3.45
Dashboard /wp-admin2,210 ▲74.85 ▲0.00108.29 ▲6.6445.20 ▲7.06
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0243.68 ▲2.4935.36 ▲2.13
Add New Post /wp-admin/post-new.php1,538 ▲523.21 ▼0.02731.51 ▲65.9257.12 ▼4.08
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0393.70 ▼2.5041.67 ▼1.66
Is connected Examples /wp-admin/plugins.php?page=AzedWPIsConnected7982.1527.1726.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-is-connected-by-azed/wp-is-connected-by-azed.php:25

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 Passed 29 tests

readme.txt Passed 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
4 plugin tags: role, not, connected, user

wp-is-connected-by-azed/wp-is-connected-by-azed.php Passed 13 tests

The primary PHP file in "WP Is Connected by Azed" version 0.1 is used by WordPress to initiate all plugin functionality
54 characters long description:
You want to show specific content for each user role ?

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin464 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12313270
JavaScript15498
PO File1242764
CSS110232

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.71MB with 0.44MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png170.93KB66.70KB▼ 60.98%
assets/screenshot-4.png195.85KB75.31KB▼ 61.55%
assets/screenshot-2.png190.49KB75.50KB▼ 60.36%
assets/screenshot-1.png171.21KB65.08KB▼ 61.99%