63% ajungo

Code Review | Ajungo

WordPress plugin Ajungo scored63%from 54 tests.

About plugin

  • Plugin page: ajungo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: Apr 21, 2014
  • Latest release: Apr 21, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: ajungo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,112 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.21ms] Passed 4 tests

Server-side resources used by Ajungo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.16 ▲0.58
Dashboard /wp-admin3.31 ▲0.0151.89 ▲2.08
Posts /wp-admin/edit.php3.36 ▲0.0156.17 ▲6.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.54 ▼6.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.98 ▲5.04
Ajungo /wp-admin/options-general.php?page=ajungo/ajungo.php3.2430.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Ajungo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.08 ▼0.271.75 ▲0.2643.54 ▼3.65
Dashboard /wp-admin2,196 ▲165.63 ▼0.0293.06 ▲6.1838.59 ▼0.08
Posts /wp-admin/edit.php2,107 ▲71.96 ▲0.0139.09 ▼2.4037.06 ▼3.41
Add New Post /wp-admin/post-new.php1,534 ▼123.07 ▲5.03640.04 ▼7.5548.71 ▼13.62
Media Library /wp-admin/upload.php1,401 ▲44.16 ▼0.0499.41 ▼0.5343.69 ▲2.70
Ajungo /wp-admin/options-general.php?page=ajungo/ajungo.php7881.9922.7930.67

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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Ajungo::uninstall() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ajungo/ajungo.php
    • > Notice in wp-content/plugins/ajungo/views/admin.php+17
    Trying to access array offset on value of type bool

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ajungo/views/code.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: ajungo_code in wp-content/plugins/ajungo/views/code.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ajungo/views/admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajungo/ajungo.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: social, facebook, ajungo, lead

ajungo/ajungo.php Passed 13 tests

The primary PHP file in "Ajungo" version 1.0 is used by WordPress to initiate all plugin functionality
137 characters long description:
Ajungo - Social Lead Capture. Capture leads and data with our Facebook Login widget. All on your site with no coding knowledge necessary.

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
Success! There were no dangerous files found in this plugin197 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP63795197

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
There are no PNG files in this plugin