10% apollo-site-tools

Code Review | Apollo Site Tools

WordPress plugin Apollo Site Tools scored10%from 54 tests.

About plugin

  • Plugin page: apollo-site-tools
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9+
  • WordPress version: 6.3.1
  • First release: Aug 10, 2019
  • Latest release: Aug 1, 2020
  • Number of updates: 25
  • Update frequency: every 14.7 days
  • Top authors: apollodatasolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,095 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/apollo-site-tools/wp_ga_main.php+13
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.54ms] Passed 4 tests

Analyzing server-side resources used by Apollo Site Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.05 ▼32.17
Dashboard /wp-admin2.05 ▼1.266.21 ▼41.73
Posts /wp-admin/edit.php2.05 ▼1.316.22 ▼39.64
Add New Post /wp-admin/post-new.php2.05 ▼3.844.81 ▼88.62
Media Library /wp-admin/upload.php2.05 ▼1.185.69 ▼28.74
php Info /wp-admin/admin.php?page=apollo_ga_plugin/phpinfo.php2.056.20
Apollo Site Tools /wp-admin/admin.php?page=apollo_ga_plugin2.055.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: 2 new tables, 7 new options
New tables
wp_website_contacts_manager_settings
wp_apollo_contacts_manager
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
website_contacts_manager_db_version
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Apollo Site Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.27 ▼1.111.43 ▼0.3439.73 ▼4.56
Dashboard /wp-admin2,233 ▲424.87 ▼0.94112.05 ▲7.3642.53 ▲1.91
Posts /wp-admin/edit.php2,113 ▲242.05 ▲0.0339.31 ▼1.0834.88 ▼0.86
Add New Post /wp-admin/post-new.php1,564 ▲5018.29 ▲0.60619.41 ▼87.6358.91 ▼13.43
Media Library /wp-admin/upload.php1,415 ▲244.22 ▲0.0599.60 ▼4.1942.26 ▼2.52
php Info /wp-admin/admin.php?page=apollo_ga_plugin/phpinfo.php5,5141.7630.8878.07
Apollo Site Tools /wp-admin/admin.php?page=apollo_ga_plugin1,0522.0322.9736.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/apollo-site-tools/wp_ga_main.php+13
    Trying to access array offset on value of type bool
  • Zombie tables detected upon uninstall: 1 table
    • wp_website_contacts_manager_settings
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • website_contacts_manager_db_version
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 27 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=apollo_ga_plugin
    • > Notice in wp-content/plugins/apollo-site-tools/wp_ga_main.php+1012
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apollo-site-tools/wp_ga_main.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

apollo-site-tools/wp_ga_main.php 92% from 13 tests

"Apollo Site Tools" version 2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("apollo-site-tools.php" instead of "wp_ga_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected960 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP121043802
CSS2140104
JavaScript17054

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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