84% as-english-admin

Code Review | AS English Admin

WordPress plugin AS English Admin scored84%from 54 tests.

About plugin

  • Plugin page: as-english-admin
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2019
  • Latest release: Aug 5, 2020
  • Number of updates: 11
  • Update frequency: every 23.3 days
  • Top authors: aksharsoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /992 total downloads


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.03MB] [CPU: ▼7.47ms] Passed 4 tests

This is a short check of server-side resources used by AS English Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.17 ▲7.78
Dashboard /wp-admin3.35 ▲0.0053.50 ▼17.35
Posts /wp-admin/edit.php3.40 ▲0.0449.78 ▼3.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.52 ▼10.96
Media Library /wp-admin/upload.php3.27 ▲0.0438.42 ▲1.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AS English Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.33 ▼0.022.11 ▲0.5245.28 ▲4.70
Dashboard /wp-admin2,213 ▲395.66 ▼0.0397.06 ▲5.7742.68 ▼0.27
Posts /wp-admin/edit.php2,118 ▲181.97 ▲0.0236.09 ▼4.7133.09 ▼4.14
Add New Post /wp-admin/post-new.php1,537 ▲1122.86 ▼0.27670.31 ▲8.4351.07 ▼8.73
Media Library /wp-admin/upload.php1,418 ▲154.24 ▲0.0995.04 ▼12.5943.98 ▼1.99

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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_filter() in wp-content/plugins/as-english-admin/as-english-wp-admin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 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
3 plugin tags: english, wpml, multilanguage

as-english-admin/as-english-wp-admin.php 92% from 13 tests

"AS English Admin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("as-english-admin.php" instead of "as-english-wp-admin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin212 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.83
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin