83% pt-ao90

Code Review | PT AO90

WordPress plugin PT AO90 scored83%from 54 tests.

About plugin

  • Plugin page: pt-ao90
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: Apr 17, 2023
  • Number of updates: 16
  • Update frequency: every 128.0 days
  • Top authors: webdados (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,758 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲5.14MB] [CPU: ▲14.20ms] 75% from 4 tests

Server-side resources used by PT AO90
It is recommended to improve the following
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.14MB on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /6.55 ▲3.0843.89 ▲7.65
Dashboard /wp-admin9.14 ▲5.8360.74 ▲15.45
Posts /wp-admin/edit.php9.19 ▲5.8359.21 ▲15.17
Add New Post /wp-admin/post-new.php11.73 ▲5.84108.87 ▲24.43
Media Library /wp-admin/upload.php9.06 ▲5.8354.32 ▲18.54

Server storage [IO: ▲0.01MB] [DB: ▲0.43MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification detected: 67 files (2,832.79KB) outside of "wp-content/plugins/pt-ao90/" and "wp-content/uploads/"
    • (new file) wp-content/languages/admin-pt_PT_ao90.mo
    • (new file) wp-content/languages/admin-network-pt_PT_ao90.mo
    • (new file) wp-content/languages/admin-pt_PT_ao90.po
    • (new file) wp-content/languages/pt_PT_ao90-0cc31205f20441b3df1d1b46100f6b8d.json
    • (new file) wp-content/languages/continents-cities-pt_PT_ao90.po
    • (new file) wp-content/languages/pt_PT_ao90-0ce75ad2f775d1cac9696967d484808c.json
    • (new file) wp-content/languages/pt_PT_ao90-17179a5f2930647c89151e365f843b6e.json
    • (new file) wp-content/languages/pt_PT_ao90-0eebe503220d4a00341eb011b92769b4.json
    • (new file) wp-content/languages/continents-cities-pt_PT_ao90.mo
    • (new file) wp-content/languages/admin-network-pt_PT_ao90.po
    • ...
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
WPLANG
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

PT AO90: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.36 ▼0.271.65 ▼0.2142.53 ▼0.81
Dashboard /wp-admin2,203 ▲265.68 ▲0.0285.54 ▼12.5837.72 ▼5.78
Posts /wp-admin/edit.php2,115 ▲152.03 ▲0.0134.75 ▲1.7933.93 ▼8.40
Add New Post /wp-admin/post-new.php1,604 ▲7523.60 ▲0.55645.91 ▼44.8451.28 ▼17.71
Media Library /wp-admin/upload.php1,424 ▲214.22 ▼0.0897.33 ▼8.3442.96 ▼4.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • WPLANG
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× 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/pt-ao90/pt-ao90.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

pt-ao90/pt-ao90.php Passed 13 tests

The main file in "PT AO90" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
139 characters long description:
Sets WordPress language to Portuguese (AO90), according to the orthographic reform of 1990, and adds fallbacks to the pre-AO90 orthography.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1145055

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin