90% project-agora

Code Review | Project Agora

WordPress plugin Project Agora scored90%from 54 tests.

About plugin

  • Plugin page: project-agora
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 29, 2023
  • Latest release: Sep 30, 2023
  • Number of updates: 25
  • Update frequency: every 0.5 days
  • Top authors: paspirosc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /36 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.57ms] Passed 4 tests

Analyzing server-side resources used by Project Agora
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.92 ▼3.72
Dashboard /wp-admin3.34 ▲0.0447.53 ▲2.37
Posts /wp-admin/edit.php3.39 ▲0.0451.49 ▲2.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0497.31 ▼2.73
Media Library /wp-admin/upload.php3.27 ▲0.0434.75 ▲1.78
Project Agora /wp-admin/options-general.php?page=projectagora-settings3.2331.80

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
projectagora_option__notify_support_consent
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Project Agora
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.57 ▼0.831.72 ▼0.3141.49 ▲0.28
Dashboard /wp-admin2,210 ▲224.87 ▼1.04109.38 ▼7.1442.38 ▼1.65
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0438.65 ▼3.1738.62 ▲1.10
Add New Post /wp-admin/post-new.php1,538 ▲1023.34 ▲5.05614.05 ▼2.7654.71 ▲5.51
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0297.70 ▼7.6842.41 ▼3.06
Project Agora /wp-admin/options-general.php?page=projectagora-settings8912.2129.1626.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: content recommendations, ads, native, taboola, advertising...

project-agora/projectagora.php 92% from 13 tests

"Project Agora" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("project-agora.php" instead of "projectagora.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin183 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13715112
SVG17071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin