84% qqworld-share

Code Review | QQWorld Share

WordPress plugin QQWorld Share scored84%from 54 tests.

About plugin

  • Plugin page: qqworld-share
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Mar 7, 2015
  • Number of updates: 21
  • Update frequency: every 25.8 days
  • Top authors: qqworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,335 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.53ms] Passed 4 tests

Analyzing server-side resources used by QQWorld Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0740.83 ▼2.63
Dashboard /wp-admin3.41 ▲0.0353.85 ▼13.73
Posts /wp-admin/edit.php3.53 ▲0.1356.59 ▲7.47
Add New Post /wp-admin/post-new.php6.18 ▲0.2688.94 ▼18.44
Media Library /wp-admin/upload.php3.34 ▲0.0739.48 ▲0.70
QQWorld Share /wp-admin/options-general.php?page=qqworld_share3.4337.08

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for QQWorld Share
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.291.63 ▲0.0541.62 ▲0.58
Dashboard /wp-admin2,199 ▲195.62 ▼0.0091.92 ▲2.0841.94 ▼3.38
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0342.53 ▲4.7237.39 ▲1.38
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▲0.04620.44 ▼79.2858.94 ▲3.02
Media Library /wp-admin/upload.php1,398 ▼24.17 ▲0.0398.22 ▲0.9541.11 ▼3.97
QQWorld Share /wp-admin/options-general.php?page=qqworld_share1,7862.0225.4133.81

Uninstaller [IO: ▲0.00MB] [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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qqworld-share/qqworld-share.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: share, china, theme

qqworld-share/qqworld-share.php 92% from 13 tests

"QQWorld Share" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,285 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS800897
PHP159224
PO File1400106
JavaScript10058

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin