84% atleta

Code Review | Atleta Embed

WordPress plugin Atleta Embed scored 84% from 54 tests.

About plugin

  • Plugin page: atleta
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2021
  • Latest release: Dec 7, 2021
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: atleta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 380 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.52ms] Passed 4 tests

This is a short check of server-side resources used by Atleta Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.92 ▼4.13
Dashboard /wp-admin3.31 ▲0.0149.21 ▲3.34
Posts /wp-admin/edit.php3.36 ▲0.0046.22 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.69 ▲2.77
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▼7.95

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Atleta Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲16823.99 ▲9.45231.37 ▲229.4339.88 ▼7.21
Dashboard /wp-admin2,206 ▲215.86 ▲0.05110.35 ▲12.2142.52 ▼1.32
Posts /wp-admin/edit.php2,092 ▲212.05 ▲0.0034.81 ▼3.4232.06 ▼2.57
Add New Post /wp-admin/post-new.php1,547 ▲2418.36 ▼4.83589.24 ▼16.6068.19 ▲20.21
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0693.12 ▼13.7640.82 ▼2.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atleta/frontend.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/atleta/atleta.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

atleta/atleta.php Passed 13 tests

Analyzing the main PHP file in "Atleta Embed" version 0.0.3
136 characters long description:
The Atleta plugin makes it possible to easily embed registration forms on your website. Works perfectly on mobile as well as on desktop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23207
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin