10% q3-activity

Code Review | Q3-Activity

WordPress plugin Q3-Activity scored10%from 54 tests.

About plugin

  • Plugin page: q3-activity
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 15, 2014
  • Latest release: Apr 27, 2014
  • Number of updates: 5
  • Update frequency: every 4.6 days
  • Top authors: ytppa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /672 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/q3-activity/q3-activity.php+85
    Declaration of Q3_List_Table::prepare_items($rows) should be compatible with WP_List_Table::prepare_items()

Server metrics [RAM: ▼1.77MB] [CPU: ▼60.37ms] Passed 4 tests

Analyzing server-side resources used by Q3-Activity
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.256.15 ▼40.16
Dashboard /wp-admin2.23 ▼1.076.44 ▼46.60
Posts /wp-admin/edit.php2.24 ▼1.126.39 ▼46.12
Add New Post /wp-admin/post-new.php2.23 ▼3.656.74 ▼108.60
Media Library /wp-admin/upload.php2.23 ▼1.006.76 ▼32.43

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Q3-Activity
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▲0.051.78 ▼0.1945.04 ▼0.46
Dashboard /wp-admin2,214 ▲345.63 ▼0.0187.12 ▼4.2842.33 ▼0.66
Posts /wp-admin/edit.php2,119 ▲192.02 ▼0.0035.04 ▼4.7936.04 ▲0.94
Add New Post /wp-admin/post-new.php1,552 ▲1723.13 ▲5.06666.35 ▲46.2355.00 ▼1.97
Media Library /wp-admin/upload.php1,419 ▲224.20 ▲0.00107.33 ▲2.6447.13 ▲4.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/q3-activity/q3-activity.php+106
    Methods with the same name as their class will not be constructors in a future version of PHP; Q3_Activity_Report has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/q3-activity/q3-activity.php:28

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Report list), #2 (List of posts, created for a specified period of time by an author)
You can take inspiration from this readme.txt

q3-activity/q3-activity.php Passed 13 tests

The entry point to "Q3-Activity" version 0.3 is a PHP file that has certain tags in its header comment area
110 characters long description:
Monitors user activity. Shows a list of users and the number of posts, created for a specified period of time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected639 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18689365
CSS12558274

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.52
Average class complexity9.50
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
img/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
img/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
img/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
img/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%