68% wp-zjuem

Code Review | wp-zjuem

WordPress plugin wp-zjuem scored68%from 54 tests.

About plugin

  • Plugin page: wp-zjuem
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-1.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2013
  • Latest release: Dec 5, 2013
  • Number of updates: 5
  • Update frequency: every 58.6 days
  • Top authors: stariy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /753 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼34.55ms] Passed 4 tests

Analyzing server-side resources used by wp-zjuem
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.90 ▲1.12
Dashboard /wp-admin3.02 ▼0.3221.77 ▼37.15
Posts /wp-admin/edit.php3.02 ▼0.3323.02 ▼23.42
Add New Post /wp-admin/post-new.php3.02 ▼2.8622.68 ▼65.41
Media Library /wp-admin/upload.php3.02 ▼0.2022.00 ▼12.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
WPZJUEMOptions
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by wp-zjuem
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲19114.22 ▼0.511.72 ▲0.0541.99 ▼0.12
Dashboard /wp-admin2,355 ▲1815.63 ▲0.0488.07 ▲2.2640.24 ▲3.02
Posts /wp-admin/edit.php2,101 ▲12.02 ▼0.0035.63 ▼3.5237.37 ▲3.53
Add New Post /wp-admin/post-new.php1,678 ▲15023.17 ▼0.08613.05 ▼8.9662.16 ▲4.17
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.0199.13 ▼3.4345.86 ▲1.49
ZJU表情包 /wp-admin/wp-zjuem.php260.420.0813.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • WPZJUEMOptions
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-zjuem/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-zjuem/wp-zjuem.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wp-zjuem.php
    • > Network (severe)
    wp-admin/wp-zjuem.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: cc98

wp-zjuem/wp-zjuem.php Passed 13 tests

The primary PHP file in "wp-zjuem" version 1.0 is used by WordPress to initiate all plugin functionality
18 characters long description:
ZJU CC98 表情包

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
No dangerous file extensions were detected334 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22320334

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin