84% viewer-for-aesys-infocity

Code Review | Aesys MyInfo.City Viewer

WordPress plugin Aesys MyInfo.City Viewer scored84%from 54 tests.

About plugin

  • Plugin page: viewer-for-aesys-...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Feb 17, 2023
  • Number of updates: 36
  • Update frequency: every 74.4 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /980 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.24ms] Passed 4 tests

A check of server-side resources used by Aesys MyInfo.City Viewer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.80 ▲2.24
Dashboard /wp-admin3.33 ▲0.0248.69 ▼4.09
Posts /wp-admin/edit.php3.38 ▲0.0252.85 ▲3.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.78 ▼3.16
Media Library /wp-admin/upload.php3.25 ▲0.0241.10 ▲0.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
aesys_version_number
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aesys MyInfo.City Viewer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.28 ▼1.321.64 ▼0.6746.91 ▲0.91
Dashboard /wp-admin2,219 ▲315.79 ▲0.86100.39 ▼6.7039.88 ▼3.56
Posts /wp-admin/edit.php2,102 ▲132.01 ▼0.0339.85 ▲3.1135.67 ▲4.04
Add New Post /wp-admin/post-new.php1,546 ▲3223.20 ▲5.57672.40 ▼36.7264.21 ▲9.20
Media Library /wp-admin/upload.php1,407 ▲194.23 ▼0.01107.95 ▲0.0246.84 ▲0.28

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • aesys_version_number

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× 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/viewer-for-aesys-infocity/viewer-for-aesys-infocity.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/viewer-for-aesys-infocity/class-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/viewer-for-aesys-infocity/class-shortcode.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No tags were found

viewer-for-aesys-infocity/viewer-for-aesys-infocity.php Passed 13 tests

The primary PHP file in "Aesys MyInfo.City Viewer" version 2.2 is used by WordPress to initiate all plugin functionality
36 characters long description:
Viewer for Aesys MyInfoCity displays

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
Good job! No executable or dangerous file extensions detected181 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4459181

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wpgov.png14.31KB5.28KB▼ 63.10%
img/aesys.png14.34KB4.48KB▼ 68.80%