68% atlas-content-modeler

Code Review | Atlas Content Modeler

WordPress plugin Atlas Content Modeler scored68%from 54 tests.

About plugin

  • Plugin page: atlas-content-mod...
  • Plugin version: 0.25.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Nov 9, 2023
  • Number of updates: 27
  • Update frequency: every 29.0 days
  • Top authors: wpengine (96.3%)studiopress (7.41%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /14,125 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.89ms] Passed 4 tests

Server-side resources used by Atlas Content Modeler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.18 ▼0.49
Dashboard /wp-admin3.40 ▲0.0944.57 ▼3.79
Posts /wp-admin/edit.php3.51 ▲0.1549.57 ▲5.78
Add New Post /wp-admin/post-new.php6.02 ▲0.1489.27 ▼3.34
Media Library /wp-admin/upload.php3.32 ▲0.0935.85 ▲0.05
Taxonomies /wp-admin/admin.php?page=atlas-content-modeler&view=taxonomies3.3235.92
Tools /wp-admin/admin.php?page=atlas-content-modeler&view=tools3.2932.09
Models /wp-admin/admin.php?page=atlas-content-modeler3.2933.26
Settings /wp-admin/admin.php?page=atlas-content-modeler&view=settings3.2933.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 248 new files
Database: 1 new table, 8 new options
New tables
wp_acm_post_to_post
New WordPress options
widget_recent-posts
atlas_content_modeler_post_types
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
atlas_content_modeler_current_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Atlas Content Modeler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8014.34 ▲0.061.85 ▲0.1142.09 ▼3.96
Dashboard /wp-admin2,251 ▲805.58 ▼0.0286.62 ▼15.4438.72 ▼4.04
Posts /wp-admin/edit.php2,152 ▲522.00 ▲0.0435.78 ▲0.9236.05 ▲2.51
Add New Post /wp-admin/post-new.php1,563 ▲3218.63 ▼4.66632.92 ▼38.2163.37 ▲12.16
Media Library /wp-admin/upload.php1,455 ▲554.29 ▲0.13100.41 ▼5.5840.40 ▼0.32
Taxonomies /wp-admin/admin.php?page=atlas-content-modeler&view=taxonomies1,11811.88246.93109.14
Tools /wp-admin/admin.php?page=atlas-content-modeler&view=tools1,03611.48121.7241.75
Models /wp-admin/admin.php?page=atlas-content-modeler1,01911.4292.4136.03
Settings /wp-admin/admin.php?page=atlas-content-modeler&view=settings1,03011.4089.9043.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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
  • Zombie tables were found after uninstall: 1 table
    • wp_acm_post_to_post
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • atlas_content_modeler_post_types
    • can_compress_scripts
    • widget_recent-comments
    • atlas_content_modeler_current_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/atlas-content-modeler/includes/shared-assets/views/banners/atlas-content-modeler-feedback-banner.php
  • 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\Settings\\esc_url() in wp-content/plugins/atlas-content-modeler/includes/settings/views/admin-menu-page.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WPE\\AtlasContentModeler\\ContentConnect\\Relationships\\Relationship' not found in wp-content/plugins/atlas-content-modeler/includes/content-connect/includes/Relationships/PostToPost.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\REST_API\\ContentModel\\add_action() in wp-content/plugins/atlas-content-modeler/includes/rest-api/routes/content-model.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\Shared\\add_action() in wp-content/plugins/atlas-content-modeler/includes/shared-assets/wp_scripts/shared_assets.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\REST_API\\Taxonomy\\add_action() in wp-content/plugins/atlas-content-modeler/includes/rest-api/routes/taxonomy.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\REST_API\\DismissFeedbackBanner\\add_action() in wp-content/plugins/atlas-content-modeler/includes/rest-api/routes/dismiss-feedback-banner.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\REST_API\\ContentModelField\\add_action() in wp-content/plugins/atlas-content-modeler/includes/rest-api/routes/content-model-field.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WPE\\AtlasContentModeler\\ContentConnect\\Tables\\BaseTable' not found in wp-content/plugins/atlas-content-modeler/vendor/wpengine/acm-content-connect/includes/Tables/PostToPost.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\AtlasContentModeler\\REST_API\\ContentModelFields\\add_action() in wp-content/plugins/atlas-content-modeler/includes/rest-api/routes/content-model-fields.php:17
    • > PHP Warning
      Use of undefined constant ATLAS_CONTENT_MODELER_INCLUDES_DIR - assumed 'ATLAS_CONTENT_MODELER_INCLUDES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/atlas-content-modeler/includes/wp-cli/class-model.php on line 14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No tags were detected

atlas-content-modeler/atlas-content-modeler.php Passed 13 tests

The main file in "Atlas Content Modeler" v. 0.25.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Model content for headless WordPress.

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 plugin24,390 lines of code in 237 files:
LanguageFilesBlank linesComment linesLines of code
JSX9465048111,717
PHP741,8084,1247,431
Sass2837112,059
JavaScript312044651,255
JSON2001,147
Markdown63050779
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity15.75
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces33
Interfaces0
Traits1
Classes31
▷ Abstract classes412.90%
▷ Concrete classes2787.10%
▷ Final classes27.41%
Methods225
▷ Static methods2511.11%
▷ Public methods21495.11%
▷ Protected methods20.89%
▷ Private methods94.00%
Functions210
▷ Named functions16980.48%
▷ Anonymous functions4119.52%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.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